package com.example.demo.entity;

import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.stereotype.Component;
import org.springframework.web.context.WebApplicationContext;


import java.util.List;

/**
 * Created by liujiahao on 2018/11/28.
 */
@Component
@Scope(value= WebApplicationContext.SCOPE_SESSION,proxyMode= ScopedProxyMode.TARGET_CLASS)
public class ShopCar {
    private List<ShopCar> li;
    private Long id;
    private String  name;

    public List<ShopCar> getLi() {
        return li;
    }

    public void setLi(List<ShopCar> li) {
        this.li = li;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    @Override
    public String toString() {
        return "ShopCar{" +
                "li=" + li +
                ", id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
